cmake_minimum_required(VERSION 3.8)
project(src_prop_define)

get_property(var1 SOURCE main.c PROPERTY my_src_prop DEFINED)
message(STATUS "my_src_prop is defined? = ${var1}")

define_property(SOURCE PROPERTY my_src_prop BRIEF_DOCS "src docs" FULL_DOCS "full docs")
get_property(var2 SOURCE main.c PROPERTY my_src_prop DEFINED)
message(STATUS "my_src_prop is defined? = ${var2}")

define_property(SOURCE PROPERTY my_src_prop2 INHERITED BRIEF_DOCS "src docs" FULL_DOCS "full docs")
get_property(var3 SOURCE main.c PROPERTY my_src_prop2 DEFINED)
message(STATUS "my_src_prop2 is defined? = ${var3}")
